<!DOCTYPE html>
<html>
  <head>
    <title>jQuery nt</title>
    <% include _head.html %>
  </head>

  <body ontouchstart>


    <header class='demos-header'>
      <h1 class="demos-title">Popup</h1>
    </header>

    <div class='demos-content-padded'>
      <a href="javascript:;" class="nt_btn nt_btn_primary open-popup" data-target="#full">显示全屏(默认)Popup</a>
      <a href="javascript:;" class="nt_btn nt_btn_primary open-popup" data-target="#half">显示底部的Popup</a>
    </div>

    <div id="full" class='nt-popup-container'>
      <div class="nt-popup-overlay"></div>
      <div class="nt-popup-modal">
        <header class='demos-header'>
          <h2 class="demos-second-title">关于 jQuery nt</h2>
          <p class="demos-sub-title">By 言川 @2016/03/30</p>
        </header>

        <article class="nt_article">
          <h1>大标题</h1>
          <section>
            <h2 class="title">章标题</h2>
            <section>
              <h3>1.1 节标题</h3>
              <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
                tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
                quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
                consequat. Duis aute</p>
            </section>
            <section>
              <h3>1.2 节标题</h3>
              <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
                tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
                cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
                proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
            </section>
          </section>
          <section>
            <a href="javascript:;" class="nt_btn nt_btn_plain_primary close-popup">关闭</a>
          </section>
        </article>
      </div>
    </div>

    <div id="half" class='nt-popup-container popup-bottom'>
      <div class="nt-popup-overlay"></div>
      <div class="nt-popup-modal">
        <div class="toolbar">
          <div class="toolbar-inner">
            <a href="javascript:;" class="picker-button close-popup">关闭</a>
            <h1 class="title">标题</h1>
          </div>
        </div>
        <div class="modal-content">
          <div class="nt_grids">
            <a href="javascript:;" class="nt_grid js_grid" data-id="dialog">
              <div class="nt_grid_icon">
                <img src="images/icon_nav_dialog.png" alt="">
              </div>
              <p class="nt_grid_label">
                发布
              </p>
            </a>
            <a href="javascript:;" class="nt_grid js_grid" data-id="progress">
              <div class="nt_grid_icon">
                <img src="images/icon_nav_progress.png" alt="">
              </div>
              <p class="nt_grid_label">
                编辑
              </p>
            </a>
            <a href="javascript:;" class="nt_grid js_grid" data-id="msg">
              <div class="nt_grid_icon">
                <img src="images/icon_nav_msg.png" alt="">
              </div>
              <p class="nt_grid_label">
                保存
              </p>
            </a>
            <a href="javascript:;" class="nt_grid js_grid" data-id="dialog">
              <div class="nt_grid_icon">
                <img src="images/icon_nav_dialog.png" alt="">
              </div>
              <p class="nt_grid_label">
                发布
              </p>
            </a>
            <a href="javascript:;" class="nt_grid js_grid" data-id="progress">
              <div class="nt_grid_icon">
                <img src="images/icon_nav_progress.png" alt="">
              </div>
              <p class="nt_grid_label">
                编辑
              </p>
            </a>
            <a href="javascript:;" class="nt_grid js_grid" data-id="msg">
              <div class="nt_grid_icon">
                <img src="images/icon_nav_msg.png" alt="">
              </div>
              <p class="nt_grid_label">
                保存
              </p>
            </a>
          </div>
        </div>
      </div>
    </div>
    
    <% include _foot.html %>
    <script>
      $(document).on("open", ".nt-popup-modal", function() {
        console.log("open popup");
      }).on("close", ".nt-popup-modal", function() {
        console.log("close popup");
      });
    </script>
  </body>
</html>
